package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.AppTypeEnum;
import com.lh.common.enums.IF;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_app_version:商场app版本表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_app_version")
@Alias("appVersion")
@Data
public class AppVersion implements Serializable {
    @ApiModelProperty(value = "唯一ID")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "发布渠道1：ios,2:android")
    @Column(name = "channel")
    private AppTypeEnum channel;

    @ApiModelProperty(value = "版本更新内容")
    @Column(name = "update_info")
    private String updateInfo;

    @ApiModelProperty(value = "是否强制更新1：强制升级2：提示升级")
    @Column(name = "force_update")
    private IF forceUpdate;

    @ApiModelProperty(value = "")
    @Column(name = "version_code")
    private Integer versionCode;

    @ApiModelProperty(value = "版本号如v2.1.2")
    @Column(name = "version")
    private String version;

    @ApiModelProperty(value = "下载链接")
    @Column(name = "apk_url")
    private String apkUrl;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * ovmal_app_version
     */
    private static final long serialVersionUID = 1L;
}
